<div class="page-header">
	<h1 style="display: inline;">
		Edit Question
	</h1>
</div>

<div class="questions form">
	<?php echo $this->Form->create('Question', array('class' => 'form-horizontal')); ?>
		<div class="row-fluid">
			<div class="span6">
				<fieldset>
					<legend>Basic Properties</legend>
					<?php
						echo $this->TwitterBootstrap->input('Question.label');
						echo $this->TwitterBootstrap->input('Question.help_text');
						echo $this->TwitterBootstrap->input('Question.required');
					?>
				</fieldset>
			</div>
			<div class="span6">
				<fieldset>
					<legend><?php echo sprintf("%s Properties", $question['ConcreteQuestion']->name); ?></legend>
					<?php echo $this->element(sprintf("ConcreteQuestions/Edit/%s", $question['ConcreteQuestion']->name), array('cq' => $question['ConcreteQuestion'])); ?>
				</fieldset>
			</div>
		</div>
		<br/>
		<div class="row-fluid">
			<div class="span12">
				<div class="text-center">
					<?php echo $this->TwitterBootstrap->button('<i class="icon-white icon-ok"></i> Save Question', array("style" => "primary", 'escape' => false)); ?>
				</div>
			</div>			
		</div>
	</div>
</div>